<div class="row justify-content-center">
    <div class="col-8">
        <div *ngIf="banner">
            <h2><span jhiTranslate="husenApp.banner.detail.title">Banner</span> {{banner.id}}</h2>
            <hr>
            <jhi-alert-error></jhi-alert-error>
            <dl class="row-md jh-entity-details">
                <dt><span jhiTranslate="husenApp.banner.name">Name</span></dt>
                <dd>
                    <span>{{banner.name}}</span>
                </dd>
                <dt><span jhiTranslate="husenApp.banner.appid">Appid</span></dt>
                <dd>
                    <span>{{banner.appid}}</span>
                </dd>
                <dt><span jhiTranslate="husenApp.banner.openid">Openid</span></dt>
                <dd>
                    <span>{{banner.openid}}</span>
                </dd>
                <dt  [hidden]=true ><span jhiTranslate="husenApp.banner.picUrl">Pic Url</span></dt>
                <dd [hidden]=true >
                    <span>{{banner.picUrl}}</span>
                </dd>
                <dt><span jhiTranslate="husenApp.banner.businessId">Business Id</span></dt>
                <dd>
                    <span>{{banner.businessId}}</span>
                </dd>
                <dt><span jhiTranslate="husenApp.banner.type">Type</span></dt>
                <dd>
                    <span jhiTranslate="{{'husenApp.BannerType.' + banner.type}}">{{banner.type}}</span>
                </dd>
                <dt><span jhiTranslate="husenApp.banner.pic">Pic</span></dt>
                <dd>
                    <div *ngIf="banner.pic">
                        <a (click)="openFile(banner.picContentType, banner.pic)">
                            <img [src]="'data:' + banner.picContentType + ';base64,' + banner.pic" style="max-width: 100%;" alt="banner image"/>
                        </a>
                        {{banner.picContentType}}, {{byteSize(banner.pic)}}
                    </div>
                </dd>
                <dt><span jhiTranslate="husenApp.banner.shop">Shop</span></dt>
                <dd>
                    <div *ngIf="banner.shopId">
                        <a [routerLink]="['/shop', banner.shopId, 'view']">{{banner.shopId}}</a>
                    </div>
                </dd>
            </dl>

            <button type="submit"
                    (click)="previousState()"
                    class="btn btn-info">
                <fa-icon [icon]="'arrow-left'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
            </button>

            <button type="button"
                    [routerLink]="['/banner', banner.id, 'edit']"
                    class="btn btn-primary">
                <fa-icon [icon]="'pencil-alt'"></fa-icon>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
            </button>
        </div>
    </div>
</div>
